<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 88 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts88p0{position:absolute;left:106px;top:97px;}
 .ts88p1{position:absolute;left:352px;top:97px;}
 .ts88p3{position:absolute;left:672px;top:97px;}
 .ts88p7{position:absolute;left:106px;top:113px;}
 .ts88p8{position:absolute;left:706px;top:1026px;}
 .ts88p9{position:absolute;left:331px;top:1044px;}
 .ts88p13{position:absolute;left:303px;top:146px;}
 .ts88p14{position:absolute;left:303px;top:164px;}
 .ts88p15{position:absolute;left:303px;top:183px;}
 .ts88p17{position:absolute;left:161px;top:204px;}
 .ts88p19{position:absolute;left:303px;top:204px;}
 .ts88p20{position:absolute;left:303px;top:223px;}
 .ts88p22{position:absolute;left:303px;top:241px;}
 .ts88p23{position:absolute;left:303px;top:259px;}
 .ts88p25{position:absolute;left:161px;top:281px;}
 .ts88p27{position:absolute;left:303px;top:281px;}
 .ts88p28{position:absolute;left:303px;top:299px;}
 .ts88p29{position:absolute;left:303px;top:318px;}
 .ts88p31{position:absolute;left:303px;top:336px;}
 .ts88p33{position:absolute;left:161px;top:357px;}
 .ts88p35{position:absolute;left:303px;top:357px;}
 .ts88p36{position:absolute;left:303px;top:376px;}
 .ts88p37{position:absolute;left:303px;top:394px;}
 .ts88p39{position:absolute;left:303px;top:413px;}
 .ts88p41{position:absolute;left:161px;top:434px;}
 .ts88p43{position:absolute;left:303px;top:434px;}
 .ts88p44{position:absolute;left:303px;top:452px;}
 .ts88p46{position:absolute;left:106px;top:471px;}
 .ts88p47{position:absolute;left:106px;top:489px;}
 .ts88p48{position:absolute;left:106px;top:508px;}
 .ts88p50{position:absolute;left:106px;top:526px;}
 .ts88p51{position:absolute;left:106px;top:544px;}
 .ts88p52{position:absolute;left:106px;top:563px;}
 .ts88p54{position:absolute;left:106px;top:581px;}
 .ts88p55{position:absolute;left:106px;top:600px;}
 .ts88p57{position:absolute;left:106px;top:618px;}
 .ts88p58{position:absolute;left:106px;top:637px;}
 .ts88p60{position:absolute;left:106px;top:656px;}
 .ts88p62{position:absolute;left:106px;top:674px;}
 .ts88p65{position:absolute;left:106px;top:693px;}
 .ts88p67{position:absolute;left:106px;top:711px;}
 .ts88p69{position:absolute;left:106px;top:730px;}
 .ts88p70{position:absolute;left:106px;top:748px;}
 .ts88p71{position:absolute;left:106px;top:766px;}
 .ts88p73{position:absolute;left:106px;top:785px;}
 .ts88p74{position:absolute;left:106px;top:803px;}
 .ts88p75{position:absolute;left:106px;top:822px;}
 .ts88p78{position:absolute;left:106px;top:840px;}
 .ts88p79{position:absolute;left:106px;top:858px;}
 .ts88p80{position:absolute;left:106px;top:877px;}
 .ts88p81{position:absolute;left:106px;top:895px;}
 .ts88p83{position:absolute;left:106px;top:914px;}
 .ts88p84{position:absolute;left:106px;top:932px;}
 .ts88p85{position:absolute;left:106px;top:950px;}
 .ts88p87{position:absolute;left:106px;top:969px;}
 .ts88p89{position:absolute;left:106px;top:987px;}

 /* Font Styles */
 .ft0p88{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p88{font-weight:normal;}
 .ft2p88{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p88{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p88{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p88{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground88{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index87.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;88 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index89.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground88><img src="./background88.png" width="640" height="910" border="0" alt=""></div>
<div class=ts88p0><span class="ft0p88"> </span></div>
<div class=ts88p1><span class="ft0p88">Gravitybox Schedule Primer<span class="ft1p88"> </span></span></div>
<div class=ts88p3><span class="ft0p88">Page 86&nbsp; </span></div>
<div class=ts88p7><span class="ft2p88"> </span></div>
<div class=ts88p8><span class="ft3p88"> </span></div>
<div class=ts88p9><span class="ft4p88">1998&#45;2004 Gravitybox Software LLC<span class="ft3p88"> </span></span></div>
<div class=ts88p13><span class="ft5p88">the number of ScheduleItems. If there is one or more </span></div>
<div class=ts88p14><span class="ft5p88">appointments there will be at least one Conflict group object </span></div>
<div class=ts88p15><span class="ft5p88">present. </span></div>
<div class=ts88p17><span class="ft5p88">FindItem </span></div>
<div class=ts88p19><span class="ft5p88">This method will return the conflict group object that </span></div>
<div class=ts88p20><span class="ft5p88">contains the specified ScheduleItem. It takes a </span></div>
<div class=ts88p22><span class="ft5p88">ScheduleItem object as a parameter and returns that </span></div>
<div class=ts88p23><span class="ft5p88">object&#146;s associated Conflict object. </span></div>
<div class=ts88p25><span class="ft5p88">IsConflictByAppt </span></div>
<div class=ts88p27><span class="ft5p88">Given a ScheduleItem object this event will determine if </span></div>
<div class=ts88p28><span class="ft5p88">there is a conflict with any other existing ScheduleItem. You </span></div>
<div class=ts88p29><span class="ft5p88">may optionally choose to ignore one or more of the </span></div>
<div class=ts88p31><span class="ft5p88">ScheduleItems as well by specifying the IgnoreIndexes. </span></div>
<div class=ts88p33><span class="ft5p88">IsConflictByData </span></div>
<div class=ts88p35><span class="ft5p88">Given the information needed to build an appointment (date, </span></div>
<div class=ts88p36><span class="ft5p88">time, room, length), this method will return a Boolean value </span></div>
<div class=ts88p37><span class="ft5p88">that determines if the specified space if free of </span></div>
<div class=ts88p39><span class="ft5p88">appointments. </span></div>
<div class=ts88p41><span class="ft5p88">Item </span></div>
<div class=ts88p43><span class="ft5p88">Given a Conflict index [1..M], this method returns a </span></div>
<div class=ts88p44><span class="ft5p88">reference to the object the collection. </span></div>
<div class=ts88p46><span class="ft5p88"> </span></div>
<div class=ts88p47><span class="ft5p88">The Count method will simply return the number of items in the Conflicts collection. An </span></div>
<div class=ts88p48><span class="ft5p88">appointment has a conflict if it is in a group that contains more than one ScheduleItem. </span></div>
<div class=ts88p50><span class="ft5p88">The &#147;FindItem&#148; method takes a ScheduleItem as a parameter and returns its associated </span></div>
<div class=ts88p51><span class="ft5p88">Conflict group object. You may then use the Conflict object returned to determine which </span></div>
<div class=ts88p52><span class="ft5p88">appointments conflict with the specified appointment by accessing the Conflict object&#146;s </span></div>
<div class=ts88p54><span class="ft5p88">ScheduleItems collection. The code below will display the number of conflicts for the </span></div>
<div class=ts88p55><span class="ft5p88">first appointment. </span></div>
<div class=ts88p57><span class="ft5p88"> </span></div>
<div class=ts88p58><span class="ft5p88">Dim oScheduleEl As CScheduleEl </span></div>
<div class=ts88p60><span class="ft5p88">Dim oConflict As CConflictEl </span></div>
<div class=ts88p62><span class="ft5p88">Set oScheduleEl = Schedule1.ScheduleItems(1) </span></div>
<div class=ts88p65><span class="ft5p88">Set oConflict = Schedule1.Conflicts.FindItem(oScheduleEl) </span></div>
<div class=ts88p67><span class="ft5p88">Call MsgBox(&#34;Conflict Count: &#34; &#38; oConflict.ScheduleItems.Count, vbInformation) </span></div>
<div class=ts88p69><span class="ft5p88"> </span></div>
<div class=ts88p70><span class="ft5p88">The &#147;IsConflictByAppt&#148; method is given a ScheduleItem object as a parameter. It will </span></div>
<div class=ts88p71><span class="ft5p88">then return a Boolean value that determines if the specified appointment conflicts with </span></div>
<div class=ts88p73><span class="ft5p88">any other appointment. This method is useful when you wish to check for conflicts but </span></div>
<div class=ts88p74><span class="ft5p88">wish to ignore some appointments. You may specify any number of indexes to ignore in </span></div>
<div class=ts88p75><span class="ft5p88">the search with the second parameter. </span></div>
<div class=ts88p78><span class="ft5p88"> </span></div>
<div class=ts88p79><span class="ft5p88">The &#147;IsConflictByData&#148; is particularly useful as well. You may specify the information </span></div>
<div class=ts88p80><span class="ft5p88">needed to build an appointment (date, time, room, length) and this method will return a </span></div>
<div class=ts88p81><span class="ft5p88">Boolean value that determines if the specified space is free of appointments. You do not </span></div>
<div class=ts88p83><span class="ft5p88">need an existing appointment, just the data of a proposed appointment. This method </span></div>
<div class=ts88p84><span class="ft5p88">can be used to check for free spaces. Again, the IgnoreIndexes parameter may be used </span></div>
<div class=ts88p85><span class="ft5p88">to ignore any number of existing appointments of which you do not care about conflicts. </span></div>
<div class=ts88p87><span class="ft5p88">The ignore indexes are numbers separated by a space, comma, colon, or semicolon. </span></div>
<div class=ts88p89><span class="ft5p88"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
